<?
include "lib.php";

//Mysql settings
define("DB_HOST" , "localhost");
define("DB_USER" , "root");
define("DB_PASS" , "sokhatai");
define("DB_NAME" , "filebin");

//File transfers key.
define("TRANSFER_KEY" , "dfasdfasdfasdfag45tyw45yuw57uje56uw4r5h76e57j76jk78k89l6089l90p79");

define("WEB_ROOT" , "http://localhost/ownalbum.com/");


//Storage directories: All these must have CHMOD 777 Write permissions

//Where to upload files. DO NOT put this in the document root !!!
define("UPLOAD_DIR" , "/tmp/");
//Where to create the thumbnails. Again DO NOT put this in the document root.
define("THUMBS_DIR" , UPLOAD_DIR . "thumbs/");
//Where to create temporary thumbnails
define("TEMP_THUMBS_DIR" , UPLOAD_DIR . "temp_thumbs/");
/////////////////////////////

//Images per page. Should try to keep this the same with the client's public $load_at_once value.
define("PER_PAGE" , "20");
//Small thumbnail size
define("THUMB_SIZE" , "120");
define("PER_ROW" , "5");


$loc = new local();
$loc->init_db(DB_HOST, DB_USER, DB_PASS);
$loc->use_db(DB_NAME);

/*
$pag = new Paginator;
$info_set = $pag->Paginate("SELECT * FROM countries" , "pages" , " - " , "to" , "30" , "5" , "&lt;" , "&gt;");

$num_rows = $info_set['num_rows'];

echo "<br />\n";
echo $info_set['nav_links'] . "<p>";
echo "<p>Records: " . $info_set['nav_info'] . " of " . $info_set['total_recs'] . "</p>";

for ($i = 0; $i < $num_rows; $i++) {
	echo $pag->setRow("ID" , $i);
	echo " - ";
	echo $pag->setRow("country" , $i);
	echo "<br />\n";
}

echo "<br />\n";
echo $info_set['nav_links'] . "<p>";
echo "<p>Records: " . $info_set['nav_info'] . " of " . $info_set['total_recs'] . "</p>";
*/
?>